<div id="main" class="col-left">
	<ul class="woocommerce_error" id="woocommerce_error" style="display:none">
	
	</ul>
	<?php
	if( Yii::app()->user->hasFlash('error') ){
	?>
	<ul class="woocommerce_error">
			<li><?php echo Yii::app()->user->getFlash('error');?></li>
	</ul>
	<?php
	}
	?>
	<div itemscope itemtype="http://schema.org/Product" id="product-157" class="post-157 product type-product status-publish hentry">
		<?php if (!empty($model)) :?>
		
		<?php 
			$this->widget('widgets.product-detail.ProductDetail', array(
				'model'		=> $model
			));
		?>
		
		<?php 
			$this->widget('widgets.product-description.ProductDescription', array(
				'model'		=> $model
			));
		?>
		
		<?php 
			
			$this->widget('widgets.related-product.RelatedProduct', array(
				'currentId'		=> $model->id,
				'arrayCat'=>(!empty($model->mapcat)) ? $model->mapcat : null,
				// 'catId'			=> (!empty($model->mapcat[0])) ? $model->mapcat[0]->category_id : null
			));
		?>
		
		<?php endif;?>
	</div>
</div>

<div id="sidebar" class="col-right">
	<?php 
		$this->widget('widgets.featured-products.FeaturedProducts', array(
		));
	?>
</div>

<script type='text/javascript' src='<?php echo Yii::app()->request->baseUrl.WWWROOT_FRONTEND; ?>/js/fancybox.min.js?ver=1.0'></script>
<script type='text/javascript' src='<?php echo Yii::app()->request->baseUrl.WWWROOT_FRONTEND; ?>/js/jquery-ui.min.js?ver=1.0'></script>
<script type='text/javascript' src='<?php echo Yii::app()->request->baseUrl.WWWROOT_FRONTEND; ?>/js/dashboard.js'></script>
<script type='text/javascript' src='<?php echo Yii::app()->request->baseUrl.WWWROOT_FRONTEND; ?>/js/thickbox.js?ver=3.1-20121105'></script>